TARGETS = tcp_server
all: $(TARGETS)

CC = gcc
CCFLAGS = -g

LIBS = -luring

%.o:%.c
	$(CC) $(CCFLAGS) -c $< -o $@

tcp_server: tcp_server.o tcp_conn.o tcp_iouring.o
	$(CC) $(CCFLAGS) $^ -o tcp_server $(LIBS)
.PHONY: clean
clean:
	rm -rf $(TARGETS) *.o